package wiki.zimo.certificate_manage.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;

import javax.persistence.*;
import java.util.Objects;
/**  
 *
 * @author 子墨
 * @date 2018/10/9 17:01
 * @describe 证书名称信息实体类
 */
@Entity
@Table(name = "prize_name", schema = "certificate", catalog = "")
public class PrizeName {
    @Excel(name = "id" ,orderNum = "0")
    private String id;
    @Excel(name = "奖项名称" ,orderNum = "1")
    private String prizeName;

    public PrizeName() {
    }

    @Id
    @Column(name = "Id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "prize_name")
    public String getPrizeName() {
        return prizeName;
    }

    public void setPrizeName(String prizeName) {
        this.prizeName = prizeName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PrizeName prizeName1 = (PrizeName) o;
        return Objects.equals(id, prizeName1.id) &&
                Objects.equals(prizeName, prizeName1.prizeName);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, prizeName);
    }

    @Override
    public String toString() {
        return "PrizeName{" +
                "id='" + id + '\'' +
                ", prizeName='" + prizeName + '\'' +
                '}';
    }
}
